import fetch from '@/config/fetch'
import {get,post} from '../config/https_method.js'
/**
 * 学生登陆
 */

export const login = data => fetch('http://localhost:8080/association/login/studentLogin', data, 'GET');
/**
 * 获取学生名字
 */
export const getStudentUserName = query => get('/association/student/getStudentUserName', query);


/**
 * 老师登录
 */
export const loginT = data => fetch('http://localhost:8080/association/login/adminLogin', data, 'GET');

/**
 * 获取老师名字
 */
export const getTeacherUserName = query => get('/association/administrator/getTeacherUserName', query);
/**
 * 退出
 */

export const signout = () => fetch('/admin/signout');
